<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@page import="com.tjsinfo.tjsoa.check.vo.TCheckLead"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List checkleadmainList = (List)request.getAttribute("checkleadmainList");
Integer id  = (Integer)request.getAttribute("id");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'checkleadmain.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/icon.css" />
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
	
	<script type="text/javascript">
		function leadDataOut(){
			$.get("<%=basePath %>tjsinfo/tjsoa/check/check.do?method=leadDataOut",{
	    			'id':$("input[name=mainid]").val()
	    		},function(data){
	    			window.location.href = '<%=basePath %>/check/'+data.fileurl;
	    		},'json')
		}
	</script>
</head>

<body>
	<table title="得分汇总" iconCls="icon-save" id="tt" class="easyui-datagrid" style="width:auto;height:500px;" toolbar="#tb">
		<thead frozen="true">
			<tr >
				<th field="personName" width="100" rowspan="2">被考核领导班子</th>
				<th field="sum" width="80" rowspan="2">得分</th>
				
				
			</tr>
		</thead>
		
		<thead>
			<tr >
				<th colspan="3">政治素质</th>
				<th colspan="4">经营业绩</th>
				<th colspan="3">团队协作</th>
				<th colspan="3">作风形象</th>
				
			</tr>
			<tr>
				<th field="zhibiao1" width="100">政治方向（5分）</th>
				<th field="zhibiao2" width="100">企业建设（5分）</th>
				<th field="zhibiao3" width="100">社会责任（5分）</th>
				<th field="zhibiao4" width="100">经济效益（20分）</th>
				<th field="zhibiao5" width="100">可持续发展（10分）</th>
				<th field="zhibiao6" width="100">创新成效（10分）</th>
				<th field="zhibiao7" width="100">科学管理（10分）</th>
				<th field="zhibiao8" width="100">发扬民主(5分)</th>
				<th field="zhibiao9" width="100">整体合力（5分）</th>
				<th field="zhibiao10" width="100">运行机制（5分）</th>
				<th field="zhibiao11" width="100">联系群众（5分）</th>
				<th field="zhibiao12" width="100">选人用人（5分）</th>
				<th field="zhibiao13" width="100">廉洁自律（10分）</th>
			</tr>
		</thead>
			
		<tbody>
			<%	
				Iterator iterator = checkleadmainList.iterator();
				while(iterator.hasNext())
				{
					TCheckLead checkLead  = (TCheckLead)iterator.next();
			%>
				<tr>
					
					<td><%=checkLead.getPersonName() %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getSum() ) %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao1() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao2() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao3() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao4() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao5() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao6() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao7() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao8() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao9() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao10() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao11() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao12() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkLead.getZhibiao13() )  %></td>
				</tr>
			<% 	
					}
				
			 %>
			
			
		</tbody>
	</table>
	<div id="tb">
		<a class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:leadDataOut()">导出报表</a>
	</div>
	<input type="hidden" name="mainid" value="<%=id%>"/>
</body>
</html>
